import App from './App';

// #ifndef VUE3
import Vue from 'vue';
import BaiduMap from 'vue-baidu-map';
Vue.use(BaiduMap, {
	ak: 'HtLWUXsVUHNzFy44yvaQwwZZTz9e2P0e'
});
Vue.config.productionTip = false;
App.mpType = 'app';
// if (navigator.userAgent.indexOf('Mobile') > -1) {} else {
// 	window.open('http://1stzone.cn/')
// }
import apiCall from './util/tool/callApi.js';
Vue.prototype.$apiCall = apiCall;

import global from './util/tool/global.js';
Vue.prototype.$global = global;

import timeago from './util/tool/timeago.js';
Vue.prototype.$timeago = timeago;

import uView from '@/uni_modules/uview-ui';
Vue.use(uView);


const app = new Vue({
	...App
});
app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue';
export function createApp() {
	const app = createSSRApp(App);
	return {
		app
	};
}
// #endif